* Fix some plurals
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 23 Dec 2006 18:30:36 +0000 (18:30 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 23 Dec 2006 18:30:36 +0000 (18:30 +0000)
includes/SpecialNewpages.php
includes/SpecialShortpages.php

index 987afa3..6200738 100644 (file)
@@ -96,8 +96,8 @@ class NewPagesPage extends QueryPage {
                $time = $wgLang->timeAndDate( $result->timestamp, true );
                $plink = $skin->makeKnownLinkObj( $title, '', $this->patrollable( $result ) ? 'rcid=' . $result->rcid : '' );
                $hist = $skin->makeKnownLinkObj( $title, wfMsgHtml( 'hist' ), 'action=history' );
-               $length = wfMsgHtml( 'nbytes', $wgLang->formatNum( htmlspecialchars( $result->length ) ) );
-               $ulink = $skin->userLink( $result->user, $result->user_text ) . $skin->userToolLinks( $result->user, $result->user_text );
+               $length = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ), $wgLang->formatNum( htmlspecialchars( $result->length ) ) );
+               $ulink = $skin->userLink( $result->user, $result->user_text ) . ' ' . $skin->userToolLinks( $result->user, $result->user_text );
                $comment = $skin->commentBlock( $result->comment );
 
                return "{$time} {$dm}{$plink} ({$hist}) {$dm}[{$length}] {$dm}{$ulink} {$comment}";
index 0073f88..03164de 100644 (file)
@@ -72,7 +72,7 @@ class ShortPagesPage extends QueryPage {
                $plink = $this->isCached()
                                        ? $skin->makeLinkObj( $title )
                                        : $skin->makeKnownLinkObj( $title );
-               $size = wfMsgHtml( 'nbytes', $wgLang->formatNum( htmlspecialchars( $result->value ) ) );
+               $size = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ), $wgLang->formatNum( htmlspecialchars( $result->value ) ) );
                
                return $title->exists()
                                ? "({$hlink}) {$dm}{$plink} {$dm}[{$size}]"